<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <!-- <a @click.prevent="fn" href="https://kaiwu.lagou.com/">链接</a> -->
    <a @click.prevent href="https://kaiwu.lagou.com/">链接</a>
  </div>
  <script src="lib/vue.js"></script>
  <script>
    new Vue({
      el: '#app',
      data: {

      },
      methods: {
        fn() {
          console.log('这是 a 标签的点击事件')
        }
      }
    });
  </script>
</body>

</html>